package test.java.com.project;

public class EhanDemo {
    public static EhanDemo instance =new EhanDemo();
    public static EhanDemo getInstance(){
        return instance;
    }
    public static void main(String[] args){
        new Thread(){
            public void run(){
                EhanDemo e=EhanDemo.getInstance();
                System.out.println(e);
            }
        }.start();

        new Thread(){
            public void run(){
                EhanDemo e=EhanDemo.getInstance();
                System.out.println(e);
            }
        }.start();

        new Thread(){
            public void run(){
                EhanDemo e=EhanDemo.getInstance();
                System.out.println(e);
            }
        }.start();
    }
}
